﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using VipReminder.Core;

namespace VipReminder.ViewModel
{
    public class WorkMonitoringRoutedEventArgs : RoutedEventArgs
    {
        public WorkMonitoringRoutedEventArgs(RoutedEvent routedEvent, object source) : base(routedEvent, source) { }

        public string Message { get; set; }
    }

    public class VmReminder : NotificationObject
    { 
        private bool _isHourly;

        /// <summary>
        /// 是否整点开始计算
        /// </summary>
        public bool IsHourly
        {
            get { return _isHourly; }
            set
            {
                if (_isHourly != value)
                {
                    _isHourly = value;
                    RaisePropertyChanged("IsHourly");
                }
            }
        }



        private int _workValue;

        /// <summary>
        /// 工作时长
        /// </summary>
        public int WorkValue
        {
            get { return _workValue; }
            set
            {
                if (_workValue != value)
                {
                    _workValue = value;
                    RaisePropertyChanged("WorkValue");
                }
            }
        }



        private int _breakValue;

        /// <summary>
        /// 休息时长
        /// </summary>
        public int BreakValue
        {
            get { return _breakValue; }
            set
            {
                if (_breakValue != value)
                {
                    _breakValue = value;
                    RaisePropertyChanged("BreakValue");
                }
            }
        }

        private int _countDownWorkMinute;

        /// <summary>
        /// 工作倒计时--分
        /// </summary>
        public int CountDownWorkMinute
        {
            get { return _countDownWorkMinute; }
            set
            {
                if (_countDownWorkMinute != value)
                {
                    _countDownWorkMinute = value;
                    RaisePropertyChanged("CountDownWorkMinute");
                }
            }
        }

        private int _countDownWorkSecond;

        /// <summary>
        /// 工作倒计时--秒
        /// </summary>
        public int CountDownWorkSecond
        {
            get { return _countDownWorkSecond; }
            set
            {
                if (_countDownWorkSecond != value)
                {
                    _countDownWorkSecond = value;
                    RaisePropertyChanged("CountDownWorkSecond");
                }
            }
        }


        private int _countDownBreakMinute;
        /// <summary>
        /// 工作倒计时--分
        /// </summary>
        public int CountDownBreakMinute
        {
            get { return _countDownBreakMinute; }
            set
            {
                if (_countDownBreakMinute != value)
                {
                    _countDownBreakMinute = value;
                    RaisePropertyChanged("CountDownBreakMinute");
                }
            }
        }

        private int _countDownBreakSecond;

        /// <summary>
        /// 休息倒计时--秒
        /// </summary>
        public int CountDownBreakSecond
        {
            get { return _countDownBreakSecond; }
            set
            {
                if (_countDownBreakSecond != value)
                {
                    _countDownBreakSecond = value;
                    RaisePropertyChanged("CountDownBreakSecond");
                }
            }
        }


    }
}
